package com.east.sng.entity.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

/**
 * @author east
 * @date: 2021/12/27
 * @Description: user login receive param javabean
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserParam {

    @NotBlank(message = "{user.username.notblank}")
    private String userName;
    @NotBlank(message = "{user.userpassword.notblank}")
    @Length(min = 6,message = "{user.userpassword.length}")
    private String userPassword;
    private String salt;

}
